import Layout from '@/layout'
export default {
  // 员工模块路由规则
  path: '/employees',
  component: Layout,
  children: [
    {
      // 员工
      path: '', // path为空表示默认子路由---类似重定向redirect
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'upload-excel', // path为空表示默认子路由---类似重定向redirect
      name: 'excel',
      component: () => import('@/views/excel'),
      hidden: true
      // meta: { title: 'Excel导入', icon: 'excel' }
    },
    {
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true
    },
    {
      path: 'print/:id',
      component: () => import('@/views/employees/print.vue'),
      hidden: true
    }
  ]
}
